﻿@{
    ViewBag.Title = "电话流水";
    Layout = "~/Areas/IM/Views/Shared/_Layout.cshtml";
}
@section Scripts{
    <script type="text/javascript">
        $(document).ready(function () {
            getTelRecordInfo();
            $.setDivOnly("#divIndex");
        });

        //获取事件信息
        function getTelRecordInfo() {
            $.ajax({
                type: 'POST',
                url: '@Url.Content("~/DD/AcceptEvent/GetTelRecordInfo")',
                data:
                    {
                        TelRecordCode: $("#TCID").val(),

                    },
                dataType: "json",
                success: function (jsData) {

                    $('#CallNumber').html(jsData.PLInfo.CallNumber);

                    $('#TeskCode').html(jsData.PLInfo.TeskCode);
                    $('#DiaoDuWorkCode').html(jsData.PLInfo.DiaoDuWorkCode);
                    $('#DiaoDuName').html(jsData.PLInfo.DiaoDuName);
                    var fAlarmTime = $.formatTime(jsData.PLInfo.AlarmTime);
                    $('#AlarmTime').html(fAlarmTime);

                    var fInListTime = $.formatTime(jsData.PLInfo.InListTime);
                    $('#InListTime').html(fInListTime);

                    var fTelAlarmTime = $.formatTime(jsData.PLInfo.TelAlarmTime);
                    $('#TelAlarmTime').html(fTelAlarmTime);

                    var fTelAlarmTime = $.formatTime(jsData.PLInfo.TelAlarmTime);
                    $('#TelAlarmTime').html(fTelAlarmTime);

                    var fCallStartTime = $.formatTime(jsData.PLInfo.CallStartTime);
                    $('#CallStartTime').html(fCallStartTime);

                    var fMeetTime = $.formatTime(jsData.PLInfo.MeetTime);
                    $('#MeetTime').html(fMeetTime);

                    //var fTransTime = $.formatTime(jsData.PLInfo.TransTime);
                    //$('#TransTime').html(fTransTime);

                    var fEndTime = $.formatTime(jsData.PLInfo.EndTime);
                    $('#EndTime').html(fEndTime);

                    $('#RecordNumber').html(jsData.PLInfo.RecordNumber);
                    $('#EndType').html(jsData.PLInfo.EndType);
                    $('#InListNumber').html(jsData.PLInfo.InListNumber);
                    $('#TelType').html(jsData.PLInfo.TelType);
                    $('#Operator').html(jsData.PLInfo.Operator);
                    //if (jsData.PLInfo.IfCallOut == true) { $('#IfCallOut').html("是"); }
                    //else { $('#IfCallOut').html("否"); }
                    //            if (jsData.PLInfo.IfWireless == true) { $('#IfWireless').html("是"); }
                    //else { $('#IfWireless').html("否"); }
                }
            });
        }
    </script>
}

<div id="divIndex" class="easyui-layout" style="width:auto; height: auto; margin-left: auto; margin-right: auto">
    <input name="txtEC" type="hidden" id="TCID" value="@ViewBag.telRecordCode" />
    <div class="easyui-panel" title="基础信息" style="width: 99%; height: 120px;">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 99%; text-align: left; margin-left: 0px; margin-right: 0px; margin-top: 20px; margin-bottom: 10px; font-size:small">
            <tr style="height: 28px; ">
                <td style="width:10%" align="right">
                    电话号码：
                </td>
                <td>
                    <span id="CallNumber" style="width:200px;"></span>
                </td>
                <td style="width: 10%" align="right">
                    台号：
                </td>
                <td>
                    <span id="TeskCode" style="width:200px;"></span>
                </td>
            </tr>
            <tr>
                <td style="width: 10%" align="right">
                    调度员工号：
                </td>
                <td>
                    <span id="DiaoDuWorkCode" style="width:200px;"></span>
                </td>
                <td style="width: 10%" align="right">
                    调度员姓名：
                </td>
                <td>
                    <span id="DiaoDuName" style="width:200px;"></span>
                </td>
            </tr>
        </table>
    </div>
    <div class="easyui-panel" title="时刻信息" style="width: 99%; height: 160px;">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 99%; text-align: left; margin-left: 0px; margin-right: 0px; margin-top: 20px; margin-bottom: 10px; font-size:small">
            <tr style="height: 28px; ">
                <td style="width: 10%" align="right">
                    震铃时刻：
                </td>
                <td>
                    <span id="TelAlarmTime" style="width:150px;"></span>
                </td>
                <td style="width: 10%" align="right">
                    排队时刻：
                </td>
                <td>
                    <span id="InListTime" style="width:150px;"></span>
                </td>
                <td style="width: 10%" align="right">
                    呼入时刻：
                </td>
                <td>
                    <span id="AlarmTime" style="width:150px;"></span>
                </td>
            </tr>
            <tr style="height: 28px;">
                <td style="width: 10%" align="right">
                    中间操作时刻：
                </td>
                <td>
                    <span id="MeetTime" style="width:150px;"></span>
                </td>
                <td style="width: 10%" align="right">
                    通话时刻：
                </td>
                <td>
                    <span id="CallStartTime" style="width:150px;"></span>
                </td>
                <td style="width: 10%" align="right">
                    结束时刻：
                </td>
                <td>
                    <span id="EndTime" style="width:150px;"></span>
                </td>
            </tr>

        </table>
    </div>
    <div class="easyui-panel" title="其他信息" style="width: 99%; height: 120px;">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 99%; text-align: left; margin-left: 0px; margin-right: 0px; margin-top: 20px; margin-bottom: 10px; font-size:small">
            <tr style="height: 28px;">
                <td style="width: 10%" align="right">
                    录音号：
                </td>
                <td style="width: 30%">
                    <span id="RecordNumber" style="width:150px;"></span>
                </td>
                <td style="width: 10%" align="right">
                    结果类型：
                </td>
                <td style="width: 20%">
                    <span id="EndType" style="width:150px;"></span>
                </td>
                <td style="width: 10%" align="right">
                    中间操作号码：
                </td>
                <td style="width: 20%">
                    <span id="InListNumber" style="width:150px;"></span>
                </td>
            </tr>
            <tr style="height: 28px;">
                <td style="width: 10%" align="right">
                    记录类型：
                </td>
                <td style="width: 30%">
                    <span id="TelType" style="width:150px;"></span>
                </td>
                <td style="width: 10%" align="right">
                    操作说明：
                </td>
                <td style="width: 20%">
                    <span id="Operator" style="width:150px;"></span>
                </td>
                <td style="width: 10%" align="right"></td>
                <td style="width: 20%">&nbsp;</td>
            </tr>
        </table>
    </div>
</div>